From: Jonathon Walker Date: Tue, 18 Oct 2022 16:04:35 +0000 (+0100) Subject: luci-app-dockerman: change default to nil if data.blkio_weight is not defined X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=848f8ffc3d9acc167cd9d1ecd139b685d9ed3569;p=project%2Fluci.git luci-app-dockerman: change default to nil if data.blkio_weight is not defined Fixes: #5327 Signed-off-by: Jonathon Walker --- diff --git a/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/newcontainer.lua b/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/newcontainer.lua index c5909bac2e..5d38a352e0 100644 --- a/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/newcontainer.lua +++ b/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/newcontainer.lua @@ -720,7 +720,7 @@ m.handle = function(self, state, data) local memory = data.memory or 0 local cpu_shares = data.cpu_shares or 0 local cpus = data.cpus or 0 - local blkio_weight = data.blkio_weight or 500 + local blkio_weight = data.blkio_weight or nil local portbindings = {} local exposedports = {}